<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 -->
 
<!DOCTYPE html>
 <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Commodity Entity Creation</title>
<script type="text/javascript" src="Javascript/DateCheck.js"></script>
<LINK REL="stylesheet" HREF="CSS/Main.css" TYPE="text/css">
<LINK REL="stylesheet" HREF="CSS/Button.css" TYPE="text/css">
</head>
<body>

	<div id="top">
	<h1>Master Data Management</h1>
	<br>
	<a id="log" href="logout">Logout</a><br>
    		<%@ include file="redirection.jsp" %>
	</div>
<h2>Commodity Type Entity Creation</h2>

<form  action="CommodityCreate"  method="get" onsubmit="return vi()">
<article id="warning"></article><br>
<div id="left">
		<div class="box">
		
Commodity Type: <input type="text" id="commodityName" name="commodityName" required>
<br/>
Commodity Class: <input type="text"  id="commodityClass" name="commodityClass" required >
 <br/>
Start Date:<input type="date" name="startDate" id="startDate" >
<br/>
End Date:<input type="date" name="endDate" id="endDate" > 
</div>
</div>

	<input type="submit" name="submit" value="submit" class="button">
	
</form>
			<%if(session.getAttribute("role").equals("admin")){%>
				<form action="Home.jsp">
					<input type="submit" class="button"name="Home" value="Home">
				</form>		
					<form action = "ControlPanel.jsp">
						<input type="submit" name="Back" value="Back" class="button">
					</form>
			<%}else{%>
				<form action = "ControlPanelUser.jsp">
					<input type="submit" name="Back" value="Back" class="button">
				</form>
				<form action="HomeUser.jsp">
					<input type="submit" class="button"name="Home" value="Home">
				</form>	
			<% }%>	
<%=(request.getAttribute("status")==null) ? "":request.getAttribute("status")%>
</body>
</html>